#ifndef VEHICLECONTROLLER_H_
#define VEHICLECONTROLLER_H_

#include "Vehicle.h"
#include "Controller.h"
#include "CollisionDetector.h"
#include "CollidableObject.h"
#include "SDL\SDL.h"

class Vehicle;

class VehicleController : public Controller, public CollidableObject
{
public:
	VehicleController( Vehicle* );
	virtual ~VehicleController();
	
	//Controller rajapinta
	void updateController(SDLKey&, int ID);
	
	//CollidableObjectController rajapinta
	void AddCollisionDetector(CollisionDetector *cd);
	SDL_Rect& GetBoundingBox();
	void NotifyCollisionDetected(ObjectInfo);
	ObjectInfo getObjectInfo();
	
protected:
	bool isControllable;
	Vehicle *vehicle;
	CollisionDetector *cd;
	ObjectInfo objectInfo;
	SDL_Rect boundingBox;
}; 

 
#endif /*VEHICLECONTROLLER_H_*/
